package com.kaili.basic.service.impl;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.kaili.basic.mapper.AlarmSubMapper;
import com.kaili.basic.pojo.entity.MdmAlarmSubEntity;
import com.kaili.basic.pojo.vo.MdmAlarmSubVo;
import com.kaili.basic.service.IMdmAlarmSubService;
import org.springframework.stereotype.Service;
import java.util.List;

/**
 * @Desc:   告警订阅ServiceImpl
 * @author: jianfeng
 * @Time: 2019/7/29 14:09
 * @Copyright: © 2018 杭州凯立通信有限公司 版权所有
 * @Warning: 本内容仅限于公司内部传阅, 禁止外泄或用于其它商业目的
 */
@Service
public class AlarmSubServiceImpl extends ServiceImpl<AlarmSubMapper, MdmAlarmSubEntity> implements IMdmAlarmSubService {


    /**
    * @Desc:  批量修改订阅
    * @author: jianfeng
    * @Time: 2019/8/5 9:07
    * @param entity
    * @return java.lang.Boolean
    */
    @Override
    public Boolean updateBatch(List<MdmAlarmSubEntity> entity) {
        return baseMapper.updateBatch(entity);
    }

    /**
    * @Desc:  查询所有订阅信息
    * @author: jianfeng
    * @Time: 2019/8/5 14:59
    *
    * @return java.util.List<com.kaili.basic.pojo.vo.MdmAlarmSubVo>
    */
    @Override
    public List<MdmAlarmSubVo> querySubList() {
        return baseMapper.querySubList();
    }

}
